home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gStartClick, gCGframe, gCTBframe
- if gStartClick <> 0 then
- if gCGframe = the number of member "CG.end" then
- set gCGframe to gCGframe - 1
- set the puppet of sprite 2 to 1
- set the memberNum of sprite 2 to gCGframe
- updateStage()
- else
- if (gCGframe > the number of member "CG.start") and (gCGframe < the number of member "CG.end") then
- set gCGframe to gCGframe - 1
- if the puppet of sprite 2 <> 1 then
- set the puppet of sprite 2 to 1
- end if
- set the memberNum of sprite 2 to gCGframe
- updateStage()
- else
- if the puppet of sprite 2 <> 0 then
- set the visible of sprite 2 to 0
- set the puppet of sprite 2 to 0
- end if
- updateStage()
- end if
- end if
- if gCTBframe = the number of member "ctb.end" then
- set gCTBframe to gCTBframe - 1
- set the puppet of sprite 3 to 1
- set the memberNum of sprite 3 to gCTBframe
- updateStage()
- else
- if (gCTBframe > the number of member "ctb.start") and (gCTBframe < the number of member "ctb.end") then
- set gCTBframe to gCTBframe - 1
- if the puppet of sprite 3 <> 1 then
- set the puppet of sprite 3 to 1
- end if
- set the memberNum of sprite 3 to gCTBframe
- updateStage()
- else
- if the puppet of sprite 3 <> 0 then
- set the visible of sprite 3 to 0
- set the puppet of sprite 3 to 0
- end if
- updateStage()
- end if
- end if
- end if
- end
-